﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GetAllCuts.aspx.cs" Inherits="GetAllCuts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>List All Cuts - Revised</h2>
        <p>This listing of all the cuts uses a Repeater bound to an ObjectDataSource control.</p>
        <asp:Repeater ID="uxAllCutsRepeater" runat="server" 
            DataSourceID="AllCutsDataSource">
            <HeaderTemplate>
                <table border="1px">
                    <tr>
                        <th>Title</th>
                        <th>Length (seconds)</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td><%# DataBinder.Eval(Container.DataItem, "Title") %></td>
                        <td><%# DataBinder.Eval(Container.DataItem, "LengthInSeconds") %></td>
                    </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <asp:ObjectDataSource ID="AllCutsDataSource" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllCuts" 
            TypeName="MusicLine.MusicLineController"></asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
